import React, { Component } from 'react'
import MouseCat from './Mouse-Cat'

export default class Mouse2 extends Component {
  render () {
    // return (
    //   <MouseCat
    //     render={position => {
    //       return (
    //         <div>
    //           position : {position.x} ,{position.y}
    //         </div>
    //       )
    //     }}
    //   />
    // )

    return (
      <MouseCat>
        {position => {
          return (
            <div>
              position : {position.x} ,{position.y}
            </div>
          )
        }}
      </MouseCat>
    )
  }
}
